#include "Entity.h"


namespace walker_sm
{
	Entity::Entity()
		:EntityBase()
	{
		fsm = new FSM<Entity>(this);
		data = new EntityData();
	}

	Entity::~Entity()
	{
		delete fsm;
		delete data;
	}

	void Entity::Update()
	{
		fsm->Update();
	}

	void Entity::HandleMessage(const Message& msg)
	{
		fsm->HandleMessage(msg);
	}
}
